
<template>
  <div class="row">
    <el-card  >
      <el-descriptions  border direction="vertical" title="我的点赞"></el-descriptions>
      <tables :data="state.data" :is-loading="method.isLoading"></tables>
    </el-card>
  </div>
</template>

<script setup>
import {onMounted, reactive} from "vue";
import {getMyLikeArticle} from "@/api/user/user";
import Tables from "@/components/tables/tables.vue";

const state =reactive({
  data:{},
  isLoading:true,
})

const method ={
  init(){
    method.getMyLikeArticle()
  },
  getMyLikeArticle(){
    getMyLikeArticle().then(res=>{
      state.data = res.data;
      method.isLoading= false;
    })
  },
}
onMounted(()=>{
  method.init()
})
</script>

<style scoped>

</style>
